Global well-posedness of partially periodic KP-I equation in the energy space and application