Fixed a bug on writing big PAK files (file still in use on delete and move)