Block authentication error Mifare classic card 1k

Bonjour,

Trying to write some information to a Mifare classic card I am running into problems.
When the card is Mifare formatted, I get an error and the card is not writeable.
Formatting the card as NDEF it is possible to write to the card without problems.
The card is readable in both formatted versions.

The error reads:
Error. Block Authentication failed for 4
Write failed

I read the user manual over and over and afaik are the access bits correct.

What goes wrong when the card is formatted Mifare classic?

formatted mifare

`Found an ISO14443A card!
UID Value:  0x55 0x3F 0xA9 0xAC
------------------------Sector 0-------------------------
Block 0   55 3F A9 AC 6F 08 04 00 62 63 64 65 66 67 68 69    U?..o...bcdefghi
Block 1   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
Block 2   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
Block 3   00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF    .........i......`

Trying to write some text

Error. Block Authentication failed for 4
Write failed

formated NDEF

UID Value:  0x55 0x3F 0xA9 0xAC
------------------------Sector 0-------------------------
Block 0   55 3F A9 AC 6F 08 04 00 62 63 64 65 66 67 68 69    U?..o...bcdefghi
Block 1   14 01 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1    ................
Block 2   03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1    ................
Block 3   00 00 00 00 00 00 78 77 88 C1 00 00 00 00 00 00    ......xw........

All good when writing to the card.

Maybe authentication failed for 4 indicates block 4 that has problems, and I forgot to add this one to this post, sorry.

Mifare formatted

Block 4   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

NDEF formatted

Block 4   03 03 D0 00 00 FE 00 00 00 00 00 00 00 00 00 00    ................

Another RFID tag, from factory not formatted

Block 4   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................