Flat-band splitting induced tunable magnetism in defective CrI3 monolayer