Fixed a bug in Request#encode_frame

When a buffer with existing data was passed in the size field was calculated on the whole size of the buffer, not just the new frame.
Frames are encoded into the existing write buffer of NodeConnection