Hello,
Thank you for your query at DoctorSpring.com
You can use the steroid ointment for 2-3 weeks till the symptoms subside. Sometimes it can take up to 6 weeks for recovery from allergies in the penis head.
The penis is probably not able to expand properly because of the infection.
Did you get it evaluated by your dermatologist??
Regards.