@sodoku Thank you for your quick answer! It worked really well. How did you know this? As I researched I did not found anything about this. But im really glad that you helped me.
My running code for reading and writing looks as followed:
if rfid0.isCardOn():
label0.setText(str(rfid0.readUid()))
rfid0.writeBlock(4,'Test', keyB=[0xFF,0xFF,0xFF,0xFF,0xFF,0xFF])
label1.setText(str(rfid0.readBlockStr(4, keyB=[0xFF,0xFF,0xFF,0xFF,0xFF,0xFF])))
else:
label0.setText('UID')
label1.setText('Text')