Improved IO perfomance removing flush()

I think this update will improve the IO
perfomance doing unnecessary flush() syscall.
They are done by the system when necessary
or before a dispose() / close() call.