Implement File::Write, Sync and Truncate - make sure I/O ops on closed files throw exception