I suggest you look at ExFatDatalogger which is a low latency data logger.
You don't say which controller you are using. It might be a tight fit, RAM wise, if your are using an Uno. I had to switch to a Mega to fit the data logger and a 9-DOF sensor together.
just my 2d's worth