no need to write WriteAll, see:
1. https://code.google.com/p/go/source/browse/src/pkg/net/net.go#126
2. https://code.google.com/p/go/source/browse/src/pkg/net/fd_unix.go#307
Merge pull request #2 from Cofyc/writeall

writeall