Help on speeding up datalogging into an SD card

Sorry, never mind, I managed to figure it out through one of the examples in the library. The SD data logging appears to writing data faster.

But I still can't manage to figure out why the whole sketch stops running after it logs the first time. I wrote the code to continue logging data as an array until it reached a size of 50 (just for testing, probably will be changed later) and then write it into the SD card. After the first set of 50 data values are written into the SD card, it seems as if it ends the process and nothing happens after. Is there something that I'm missing?