use bufio when call write

we found lots of soft interrupts when calling "write" in our system, iperformance improvements in the six times after using bufio.