Fix #5. Pass error to callback in _write.

This fixes a bug where the 'finish' event is improperly emitted from the
write stream when the write stream is invalid and should only emit an
'error' event.
Merge pull request #6 from ericlathrop/stop-invalid-finish-event

Fix #5. Pass error to callback in _write.