It seems that everything would be fine.
fdisk does not check if you changed something in your tables when you
command it to write the table. As fdisk said, it couldn't write the
table, likely because everything is mounted. So, if you just pressed
p before you accidently pressed q everything should be okay after a
reboot.
Frank.
--
$ Hello World!
$ I am [Ff]rank ;)
1024D/EC4CE5CC 2002-05-14 Frank Brodbeck <oakenshield@gmx.net>
fingerprint = 193D 62EC 03A5 1066 A951 4DA3 947A D578 EC4C E5CC