Add a function that directly converts a Write to a ByteString

This function is useful when you want to efficiently construct a short, fixed-sized bytestring.