add headBuffer for SpdyWriter to avoid small packet transmission

This patch is used to buffer the head of the sending frames to avoid small packets on the network and to minimize IO operations.