Fix write length so it includes the updated header (tag) CRC32