The meaty egg-like thing your hen laid looks like it could be a lash egg (a symptom of salpingitis, the oviduct infection). A lash egg is essentially a pus-filled mass.
This article - written by a vet - may be helpful, and has additional info and photos. Best wishes for your hen's recovery.