I’m sorry I can’t answer you, because I don’t know. But I love the question and have several more myself.
Do we know every invention of writing or just the surviving ones? What is writing? Are hieroglyphs writing? Where do hieroglyphs end and cave paintings start?