Fix to the possiblity that a CFile::Write can return a negative number.