First, scan it using Kaspersky ( for best ) or Avast or Avira... If there is no virus, check if the squarish supporter of the SD card's lock button is up or down, change its direction and repeat formatting.
It would be also great to see what it shows up.