simplify FilePtr::checkSize using boost::filesystem::resize_file