Fix _handle_write() may not send full frame

If socket.send() in _handle_write() does not send all of
the bytes requested, put the remainder of the frame back
on the outbound buffer.
Merge pull request #1 from jonkirsch/hotfix-handle-write

Fix _handle_write() may not send full frame