void write_file(char * newfilename)
Saves the buffer into the file corresponding to newfilename like the Write File menu entry does.