Writes the in-memory content associated with file (see getFile) back to disk.
if the file cannot be written.
if file was never registered via loadFile, newFile, or setFile.