Fix write.close() returning before all data is flushed on disk
Fallback fix for old Streams
Polishing updates to FS.write

Memoize whether Node supports finished events in the current version.

Adds a spec for FS.write.

Style nits.