Dynamic Reinforcement Learning-based Resource Allocation For Grant-Free Access