Wow ,I hope your ok and are on the mend.
Cycling at night, you really do need front and rear lights plus ideally reflective clothing if you're cycling on the roads.The state of our roads can hide some nasty surprises in the dark such as pot holes ect , which can be leathal if you hit one unexpectedly.Lights and reflective clothing are also there to help you be seen by other road users.Ive had a few moments in my car where a cyclist is seen at the last moment because they had no lights, reflectors or reflective clothing.
Also a light comes in very handy in the event of a puncture.Faffing around swapping an inner tube in the pitch black ain't much fun..
Hope you get better soon and that this incident hasn't knocked your confidence to much for cycling in the dark.