An alliance is a process of deepening relationships that take time to develop. We didn't automatically become an ally of Great Britain, for instance. Even as we intervened in the First World War (albeit a bit late) on behalf of the Allies, we still regarded Britain as a potential threat in the interwar years. It wasn't until we entered into the Second World War that we became full-fledged allies. It doubtless helped that the powers that ruled the British Empire regarded us as a natural successor, and were patient with us as we grew into the role and finally accepted the mantle of world leadership.
India will get there too, though I do not think it will take quite as long between the initial warming of relations and a full alliance as it did between the United States and Great Britain.
It's not about India and the US not getting along, it's about where India sees itself in the world. India's foreign policy goal is achieving supremacy in its own neighborhood (which nobody outside the region cares about) and becoming a great power at the global level. These goals don't align with US interests, especially as India is too large, distant, and uninterested to fall into China's sphere of influence. Anything deeper than a very specific alliance of convenience with India (or Pakistan) would require the US to take sides on that issue, which is obviously not in US interests. Why would India want to join a bunch of losers (every single major ally of the US, with the exception of Israel, is in decline), who have vastly different interests regarding China, when it can continue with an independent foreign policy that works well enough for them?