You are wrong on two accounts.i will keep it brief.
If you are referring to smaller gods as Pirs who can cure black magic you, then maybe when you get sick, you shouldnt even go to a doctor. There is no denying ALLAH helps everyone 24/7, but a certain pir uses ALLAH’s words(kalam) to cure you. lastly, if you dont want to go to anyone dont go, but like doctors who cure us from diseases, there are pirs who cure us from black magic.
Most of us dont come from hindu background and hindus have adopted many traditions of our elders in subcontinent instead. Hindus adopted such traditions because they thought that they will also get the same benefit without changing faith(being a muslim) but it didnt work out that way.
When a Wali-ALLAH(Hazrat Khuwaja Moinuddin Chishti Ajmeri) was sent to India with the mission of spreading Islam here, he studied Hindu ways first.He studied them to sort of give them an alternative for their hindu ways and then shift them towards Islam.In short, he was successful in this endeavour and many hindus became muslims.
Just a few examples:
1.A part of population in India worshipped fire/sun believing that this fire will save them from the fire of hell,so he used Chiragh(lamp) and lit that with fire.
2.The long hanging bell used in mandir(temples) by Hindus now.
A bell was hung outside his Hujra(a place where he used to sit) when he would do chilla, for the needy ones to come and pull the cord three times.Since he couldnt attend to anyone so he told his disciples that by ringing the bell the wish of the affected person will reach ALLAH’s throne.
Numerology,astrology,astronomy and palmistry are definitely sciences and are effective in their own ways.Black magic can be done through numerology and astrology also but thats a long discussion.You do good by staying away from such, i would have done the same. Since hindus dont have Quran and Hadith etc to take guidance and satisfaction from, they resort to these sciences.
Being in a company of black magician is completely different than staying in the company of a pir. If you know about pirs, they arent average people because average people dont go to the extents in worshipping and remembering ALLAH 24/7.Current authentic pirs follow the trademarks set by ALLAH’s apostle, Muhammad(saw),sahaba karam and Aulia-ALLAH.