```stream.prototype.write``` actually has more parameters than just data:
  http://nodejs.org/api/stream.html

So, we need to do something like (this code untested):

```javascript
var write = stream.write

stream.write = function() {

}
```


For example, you can do: ```process.stdout.write("foo", "utf8", function () { console.log('done') })```