WRITEDATA function, callbacks receive valid chunk sizes