Fix CPipeFile::Write return value, the internal Write return bool, we need int

as title, it's a minor fix.