flush file csv file buffer to disk

@patbenatar 

It wasn't working for me until I did this...