Call res.write instead of res.end in writeHead
Call res.write instead of res.end in writeHead

This matches what Node.js does internally when dealing with a ServerResponse.

Fixes #252

sockjs/sockjs-node,sockjs/sockjs-node