There are “-ly” words and “-ally” words, and you basically just have to memorize which is which. But “basically” is very much overused and is often better avoided in favor of such expressions as “essentially,” “fundamentally,” or “at heart.”