Write a byte array rather than individual bytes