How does SD card write protect switch work?
The Write Protect on the SD card standard is essentially a Honor System. The card reader host must choose to honor it. That's it.

As for your SD WP pin. If it is floating with no internal pull up or down, then you have a problem. The line needs to be pulled up to VCC or down to ground. Floating will cause you problems if your IC honors the write protection.