recently i took apart my laptop to clean the fans, but the right fan is still making a weird whirring and popping noise. i want to try to get that fan out to replace it, but its attached to the heatsink and im not sure how to go about replacing it
Not sure if you can replace an individual fan as they are part of the thermal module and don't come as a separately available part.
Once the thermal module has been removed from the motherboard, you could try removing the fans and cleaning the fan blades using a soft brush and a vacuum cleaner.
Here's the hardware maintenance manual for the laptop. Go to p.34 (40 of 64 pdf) to view the procedure to remove the thermal module.
Also check if you can remove the centre cap from the fan- check both sides if one side doesn't come out. If it comes out, apply 1 drop only of a light grade machine oil (sewing machine oil) to the bearings and manually spin the fan a few times to see if the noise has gone. Remember to replace the cap that covers the bearings
Maybe also check if the thermal paste on the CPU and GPU needs refreshing as well.
Laptop fans are often screwed directly into the heatsink assembly. Disconnect the fan cable first, then carefully remove the small mounting screws holding the fan housing to the heatsink. Avoid forcing it, and replace thermal paste if you remove the entire heatsink assembly during the repair.