Write a null byte at end of expanded file to make sure the size is permanent