Writes data to the file and returns true if the write was successful and should be committed, and false if the write should be aborted.
The File the Writer should write to.