virt: add truncate() func into RemoteFile class

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>