Finishes writing a chunk.
Finishes writing a chunk. This should be called when you are done with your iff_writechunkdata() calls. If the resulting chunksize is odd, an extra null-byte will be added at the end of the chunk, and the header will have its size set to the new value.