Hi Aruna,
As I understand from your description, the requirement is to deduct from current year quota for compensation. where as it is getting deducted from previous year quota balance.
In this scenario, Please update the balance of previous leave in another quota not in the same quota for current year.
In configuration for quota compensation, assign the current year quota for compensation not the quota type with carried forward number of days.
Thanks,
RK.