SD library won't write to card

In addition to the above suggestions, if things don't appear to work as expected, it's a good idea to see if there are any known working example sketches that you can use to assist in narrowing down the problem.

Have a look for the SD example sketch called ReadWrite in the IDE.

And as I suggested in your previous thread, make sure that you are formatting the SD card correctly.