FS.WriteStream implementation