A note of the first law of thermodynamics by gravitational decoupling