Added the writeData: method to the NSOutputStream class.