Update writeDataWrapper.R