Add flush to output file Writer