vi is the default Unix editor, although on Linux it's usually symlinked (technical term) ie pointed to vim (vi improved).
You don't need to force writes like that, you just need to use the chmod cmd (see man page), but basically the permissions may not include write (w), so use something like this
chmod u+w filename
adds write priv to user (owner) of file.
check who the owner is first.