Refactored Ftp::write to use writeStream