truncate file by size