If you’re using dd to write disk images to sd card on OS X, if the card is already partitioned and the partition is mounted, you need to unmount the partition and not the whole sd card in order to write to it. See prior notes here, and solution to unmount the partition here on SO.