Fixes a typo in the writeRowsToFile method.