Make sure we write all the data we just read