unix: fix setting written size on uv_wd