io.Writer wrapper that buffers writes instead of blocking on the underlying stream