Writes the contents of the current buffer to its associated file in its associated format, and if the format is text in its associated view.