call the sync function on the file, not the FS