Writing can't really be counted as one invention, since it went through many stages(cave paintings, glyphs, alphabet, standardized characters). That would be similar to having transportation as an invention(walking, wheel, animal powered, steam powered, combustion powered).
I would say that the printing press was the greatest invention. While other inventions were great, no other invention has changed the entire world so radically within the first 20 years since it's invention.