File.truncate should not move write pointer