SD card write very random, mostly not working