updating write data size