handled partial write and partial read in workloadplayer