Make FileJob::write() behave consistently
For the sftp/smb slaves, FileJob::write() commits the data to disk,
whilst the file slave doesn't. This patch makes sure that the file slave
exhibits the same behaviour by calling flush() on every write().