Add writeToByteString

This function is useful when you want to efficiently construct
a short fixed-sized bytestring.
Merge pull request #11 from takano-akio/write-to-byte-string

Add a function that directly converts a Write to a ByteString