Make ByteSlice implement ByteWriter
FIX some bug for new go version