Where I practice if the HOA has a lien then they could seek to collect any amount owing under the lien plus any post petition HOA dues. When you received your discharge the discharge eliminated your personal liability. However, when the HOA filed the lien they created in rem liability against your house as well as in personal liability which is your personal liability. Basically by filing the lien they established a link against the property itself (paraphrased in rem means "in the thing") which means that they assert the debt not only against you, but like your mortgage, they assert the right to collect from the property. Your bk eliminated your personal liability but the HOA can still seek to collect by enforcing the lien against the property. If you had an attorney talk to your attorney.
DISCLAIMER: This message is intended as a general discussion of legal issues and not as a statement of fact, legal advice or a legal opinion. No attorney-client relationship is created by this message. Do not act or rely upon law-related information in this communication without seeking the advice of an attorney licensed to practice in the relevant area. I am a Federally Designated Debt Relief Agency under the United States Bankruptcy Code. I proudly help people in financial need file bankruptcy cases. IRS CIRCULAR 230 NOTICE: To ensure compliance with requirements imposed by the IRS, we inform you that any U.S. tax advice contained in this communication (or in any attachment) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed in this communication (or in any attachment).
If the HOA had a lien, their lien covers the entire amount they are owed, as secured by the property. If you had resumed paying the HOA afterwards, you might have a defense to a utility cutoff, but since you didn't, I think you would have a hard time persuading the bankruptcy court that this is a violation of the bankruptcy discharge. Hope this perspective helps!
If the HOA is including discharged fees, that is contempt of the discharge injunction and can result in damages in your favor. Depending upon the facts of your case, this could result in damages or might be a wash. In my experience, HOA's will try to do it dirty like this and get extra fees but once caught, they are willing to negotiate. You will want to contact an attorney to at least discuss your options.
This answer does not constitute legal advice and no attorney-client relationship is formed through this answer. If you wish to have a free consultation as to your question and my answer, please contact me at your soonest convenience.