Atomic Intercalation Induced Spin-Flip Transition in Bilayer CrI3