You didn't make it clear that the payment you made on November 29th
is for the month of November or December.
Regardless, it appears that the landlord has no right to deduct the
portion of security deposit for the remaing days of December since you gave the landlord a 30 days notice.
Here is the reference to the California Statutes.
California Landlord-Tenant Practice § 8.73 (2d ed Cal CEB 2008)
§ 8.73 3. 30 or 60 Days to Vacate; Service in Middle of Term
Any termination notice given under CC § 1946 or § 1946.1 should state specifically that the month-to-month tenancy will terminate in 30 or 60 days, whichever applies. In Kingston v Colburn (1956) 139 CA2d 623, 293 P2d 805, the court held that a notice giving fewer than 30 days to vacate was ineffective on the date stated in the notice, but was effective to terminate the tenancy after 30 days.
For termination of a month-to-month tenancy, a 30-day notice need not be served at the beginning of a given 30-day period of the tenancy. Under CC § 1946, the 30-day notice may be served "at any time and the rent shall be due and payable to and including the date of termination." Similarly, CC § 1946.1 does not require the 60-day notice to be given on any particular date relative to rent payment for a month-to-month tenancy. Thus, a 30-day or 60-day notice may be served at any time during the month, and the rent will be apportioned for the days of possession during the following month. In Wheeler v Bainbridge (1948) 84 CA2d Supp 849, 191 P2d 134, a 30-day notice was served on October 13, and the November rent was due on November 8. Because rent for an entire month was $ 50.50, the tenant owed $ 10.10 as the apportioned amount for the period from November 8 to November 13, when the tenancy was terminated.