write again when wrsize < size

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>