Study what magic is, how it works, what it can do and what it cannot do. Learn about meditation, visualization, grounding, and energy work. Practice. Than look into spell creation.
The terms white magic and black magic are moral judgments of the intention of the caster of the spell. Magic is a neutral force.