fix the file length for write testing